<?php
    @include_once("common.php");

    $sql = "select id,goodsId,goodsName,goodsPrice,goodsImg,goodsNameEn FROM `recomlist` where goodsName like '%%' order by id";

    $result = mysqli_query($conn,$sql);

    $all = array();
    while($item = mysqli_fetch_assoc($result)){

       

        array_push($all,$item);
    }

    $obj = array();
    if(count($all)>0){
        $obj["status"] = true;
        $obj["detail"] = "ok";
        $obj["list"] = $all;
    }else{
        $obj["status"] = false;
        $obj["detail"] = "暂无数据";
    }

    echo json_encode($obj);

?>